package com.ruoyi.storage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.storage.domain.RepoWare;
import com.ruoyi.storage.service.RepoWareService;
import com.ruoyi.storage.mapper.RepoWareMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author 标哥
* @description 针对表【repo_ware】的数据库操作Service实现
* @createDate 2022-01-04 14:23:38
*/
@Service
public class RepoWareServiceImpl extends ServiceImpl<RepoWareMapper, RepoWare>
    implements RepoWareService{

    @Autowired
    private RepoWareMapper repoWareMapper;

    @Override
    public List<RepoWare> selectAllWare(String queryWareName, Integer queryWareCity) {
        return repoWareMapper.selectAllWare(queryWareName,queryWareCity);
    }

    /**
     * 批量删除用户信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    @Transactional
    public int deleteUserByIds(String ids) {
        Long[] userIds = Convert.toLongArray(ids);
        return repoWareMapper.deleteUserByIds(userIds);
    }

    @Override
    public List<RepoWare> getList(RepoWare repoWare1) {
        return null;
    }


}




